set(CMAKE_TOOLCHAIN_FILE cmake/ArduinoToolchain.cmake)

cmake_minimum_required(VERSION 2.8)
project(blink C CXX)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++0x")

set(ARDUINO_DEFAULT_BOARD uno) # Default Board ID, when not specified
set(ARDUINO_DEFAULT_PORT /dev/ttyACM0) # Default Port, when not specified

generate_arduino_library(IRremote
    SRCS IRremote/IRremote.cpp
    HDRS IRremote/IRremote.h
    BOARD uno)


set(blink_SRCS main.cpp soundremote.cpp tvremote.cpp)
set(blink_LIBS IRremote)
set(blink_BOARD uno)

generate_arduino_firmware(blink)
